package com.myhouse.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myhouse.biz.TypeBiz;
import com.myhouse.dao.TypeDao;
import com.myhouse.entity.Type;

@Service("typeBiz")
public class TypeBizImpl implements TypeBiz{

	@Autowired
	private TypeDao typeDao;
	
	public boolean insertType(String name) {
		return typeDao.insertType(name);
	}

	public boolean deleteType(int id) {
		return typeDao.deleteType(id);
	}

	public boolean updateType(Type type) {
		return typeDao.updateType(type);
	}

	public List<Type> getAll() {
		return typeDao.getAll();
	}

}
